<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="root">
        <!-- v-text指令会覆盖标签内的内容 相对于插值语法来说不灵活 而且还不能解析标签 -->
        <h2 v-text="name">aaa</h2>
    </div>

    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: "#root",
            data() {
                return {
                    name: "hello",
                }
            },
        })
    </script>

</body>

</html>